.class Lcom/hyphenate/chat/EMClient$MyConnectionListener$2;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic this$1:Lcom/hyphenate/chat/EMClient$MyConnectionListener;

.field final synthetic val$errCode:I


# direct methods
.method constructor <init>(Lcom/hyphenate/chat/EMClient$MyConnectionListener;I)V
    .locals 0

    iput-object p1, p0, Lcom/hyphenate/chat/EMClient$MyConnectionListener$2;->this$1:Lcom/hyphenate/chat/EMClient$MyConnectionListener;

    iput p2, p0, Lcom/hyphenate/chat/EMClient$MyConnectionListener$2;->val$errCode:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    iget-object v0, p0, Lcom/hyphenate/chat/EMClient$MyConnectionListener$2;->this$1:Lcom/hyphenate/chat/EMClient$MyConnectionListener;

    iget-object v0, v0, Lcom/hyphenate/chat/EMClient$MyConnectionListener;->this$0:Lcom/hyphenate/chat/EMClient;

    # getter for: Lcom/hyphenate/chat/EMClient;->connectionListeners:Ljava/util/List;
    invoke-static {v0}, Lcom/hyphenate/chat/EMClient;->access$100(Lcom/hyphenate/chat/EMClient;)Ljava/util/List;

    move-result-object v1

    monitor-enter v1

    :try_start_0
    iget-object v0, p0, Lcom/hyphenate/chat/EMClient$MyConnectionListener$2;->this$1:Lcom/hyphenate/chat/EMClient$MyConnectionListener;

    iget-object v0, v0, Lcom/hyphenate/chat/EMClient$MyConnectionListener;->this$0:Lcom/hyphenate/chat/EMClient;

    # getter for: Lcom/hyphenate/chat/EMClient;->connectionListeners:Ljava/util/List;
    invoke-static {v0}, Lcom/hyphenate/chat/EMClient;->access$100(Lcom/hyphenate/chat/EMClient;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/EMConnectionListener;

    iget v3, p0, Lcom/hyphenate/chat/EMClient$MyConnectionListener$2;->val$errCode:I

    invoke-interface {v0, v3}, Lcom/hyphenate/EMConnectionListener;->onDisconnected(I)V

    goto :goto_0

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_0
    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    return-void
.end method
